package org.basis.algorithm.lru;

/**
 * LruCache测试
 *
 * @author wenpan 2024/03/06 23:40
 */
public class LruCacheTest {

    public static void main(String[] args) {
        LruCache lruCache = new LruCache(3);
        LruCache2 lruCache2 = new LruCache2(3);
        for (int i = 0; i < 50; i++) {
//            lruCache.put("" + i, "v_" + i);
            lruCache2.put("" + i, "v_" + i);
            System.out.println(lruCache2);
        }
    }
}
